package com.cfpl.project_common.util;

public abstract class RegexPatterns {
    /**
     * 手机号正则
     */
    public static final String PHONE_REGEX = "^(?:(?:\\+|00)86)?1[3-9]\\d{9}$";

    /**
     * 邮箱正则
     */
    public static final String  EMAIL_REGEX = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(?:\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$";
    /**
     * 密码正则。至少6位，包括至少1个大写字母，1个小写字母，1个数字，1个特殊字符
     */
    public static final String PASSWORD_REGEX = "^.*(?=.{6,})(?=.*\\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@\\.#$%^&*? ]).*$";
    /**
     * 验证码正则, 6位数字或字母
     */
    public static final String VERIFY_CODE_REGEX = "^[a-zA-Z\\d]{6}$";

}
